import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import '@/styles/index.scss'
import '@/iconfont/iconfont.css'
import { registerIcon } from '@/utils/el-icons'
import 'virtual:svg-icons-register'
import { useElementPlus } from '@/installElement'
import { useVForm } from '@/installVForm'
import { useVXE } from '@/installVXE'

import 'gridstack/dist/gridstack.min.css'


const vfApp = createApp(App)
vfApp.use(ElementPlus, {
  locale: zhCn,
  namespace: 'ep',
})
useElementPlus(vfApp)
useVForm(vfApp)
useVXE(vfApp)
registerIcon(vfApp)

vfApp.mount('#vfApp')
